package cn.easybuy.vo;


import cn.easybuy.pojo.Product;
import lombok.Data;

import java.io.Serializable;
@Data
public class ProductVo {
	private Product product;//商品
	private Integer quantity;//数量
	private float cost;//价格

	public float getCost() {
	    cost = product.getPrice() * quantity;
		return cost;
	}

}
